package com.yaojianfeng.doubancrawler.controller;import com.yaojianfeng.doubancrawler.entity.Movie;import com.yaojianfeng.doubancrawler.mapper.MovieMapper;import com.yaojianfeng.doubancrawler.service.DoubanCrawlerService;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.web.bind.annotation.*;import java.util.List;@RestController@RequestMapping("/movies")public class MovieController {    @Autowired    private MovieMapper movieMapper;    @Autowired    private DoubanCrawlerService doubanCrawlerService;    @GetMapping    public List<Movie> getAllMovies() {        return movieMapper.selectAllMovies();    }    @GetMapping("/search")    public List<Movie> searchMovies(@RequestParam String title) {        return movieMapper.searchMoviesByTitle(title);    }    @GetMapping("/crawl")    public String crawlAndSave() {        doubanCrawlerService.crawlAndSave();        return "success";    }}